package com.ptu.server;

import com.ptu.entity.SeckillOrder;
import com.ptu.util.PageResult;
import com.ptu.util.Result;
import com.ptu.vo.SeckillOrderVO;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface SeckillOrderServer {
    Result<Void> add(Long productId);

    void handleVoucherOrder(SeckillOrder seckillOrder);

    void refund(Long id);

    void complete(Long id);

    PageResult getList(Integer pageNum, Integer pageSize);

    void deliver(Long id);

    void adminRefund(Long id);

    List<SeckillOrderVO> list();

    void pay(Long id);

    void cancel(Long id);
}
